Inhibit quote autopairing more frequently
authorJoão Távora <joaotavora@gmail.com>
Mon, 7 Apr 2014 07:24:03 +0000 (08:24 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 7 Apr 2014 07:24:03 +0000 (08:24 +0100)
commit22a4f9b3579c9cb06d0509d8af4c236f9c7b3bef
treeebdea4ea39c4eb6b664b2c2dedfd11e28cb0e34d
parentda59e10d33fb68adf6a38b67b52da070b5e4907a
Inhibit quote autopairing more frequently

Backported from trunk r116926

* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
quote pairing if point-max is inside an unterminated string.
(electric-pair--looking-at-unterminated-string-p):
Delete.
(electric-pair--in-unterminated-string-p): New function.

* test/automated/electric-tests.el (inhibit-if-strings-mismatched):
New test, change from `inhibit-only-of-next-is-mismatched'.
lisp/ChangeLog
lisp/elec-pair.el
test/ChangeLog
test/automated/electric-tests.el